package com.smart.manage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.smart.common.annotation.Excel;
import com.smart.common.core.domain.BaseEntity;

/**
 * 就诊人预约挂号对象 tb_patients_appointment
 * 
 * @author lingyao
 * @date 2025-03-01
 */
public class PatientsAppointment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预约记录ID */
    @Excel(name = "预约记录ID")
    private Long id;

    /** 就诊人ID */
    @Excel(name = "就诊人ID")
    private Long patientsId;

    /** 关联用户的ID */
    @Excel(name = "关联用户的ID")
    private Long userId;

    /** 预约日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date appointmentDate;

    /** 预约时间 */
    @Excel(name = "预约时间")
    private String appointmentTime;

    /** 预约状态（0：未确认，1：已确认，2：已就诊，3：已取消） */
    @Excel(name = "预约状态", readConverterExp = "0：已预约，1：已就诊，2：已完成，3：已取消")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPatientsId(Long patientId)
    {
        this.patientsId = patientId;
    }

    public Long getPatientsId()
    {
        return patientsId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }


    public void setAppointmentDate(Date appointmentDate)
    {
        this.appointmentDate = appointmentDate;
    }

    public Date getAppointmentDate() 
    {
        return appointmentDate;
    }
    public void setAppointmentTime(String appointmentTime)
    {
        this.appointmentTime = appointmentTime;
    }

    public String getAppointmentTime()
    {
        return appointmentTime;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("patientsId", getPatientsId())
            .append("userId", getUserId())
            .append("appointmentDate", getAppointmentDate())
            .append("appointmentTime", getAppointmentTime())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
